<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'editClient_main.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/menu_tab.css">
	<link rel="stylesheet" type="text/css" href="css/list_2.css">
	<link rel="stylesheet" type="text/css" href="css/left_tabmenu.css">
	<link rel="stylesheet" type="text/css" href="css/public.css">
	<script type="text/javascript" src="js/showmenu.js"></script>
	<style type="text/css">	
#balancesheet{
padding-top:1;
}

.report {border-collapse:collapse;}
.report td{height:20px;border:1px solid #DCDCDC;}
.report th{border:1px solid #DCDCDC;}
</style>
  </head>
  
  <body>
  <table width="100%">
  <tr><td>
<table width="100%">
<tr><td><jsp:include page="../top.jsp" flush="true"></jsp:include></td></tr>
</table>
</td></tr>
<tr><td height="4"></td></tr>
<tr><td style="padding-left:4px;padding-right:4px;height:20px;text-align:left;">
<div class="text_note" style="background:#BCD2EE;height:18px;">
&nbsp;&nbsp;当前位置： <a href="#" style="text-decoration: none;">首页</a>&gt;&gt;财务分析&gt;&gt;客户分析
</div>
</td></tr>
<tr><td height="4"></td></tr>
<tr><td>
<table width="99%" style="border:#BCD2EE solid 1px;margin:auto;">
<tr><td style="height:36px;text-align:right;border:#BCD2EE 1px solid;padding-left:16px;padding-right:20px;">
<table width="100%">
<tr>
<td width="85%" style="text-align: left;">
<img src="images/arrow.gif" />
当前客户--客户号：${CurrentCust.custNo}
&nbsp;&nbsp;&nbsp;客户名称：${CurrentCust.custName}
&nbsp;&nbsp;&nbsp;客户类型：${CurrentCust.custType}</td>
<td width="15%" style="text-align: right;"><input type="button" class="button" value="重新选择" onClick="window.location.href='view/finance/FindCustomer.jsp'"></td>
</tr>
</table>
</td></tr>
<tr><td style="border:1px solid #BCD2EE;">
<table width="100%">
<tr>
<td width="16%" height="480" style="vertical-align:top;border-right:2px #65aaef solid;">
<div id="nav">  
 <div class="title" id="menu1"><a href="finance/checkRecentGeneralReport.do">→ 财务简表</a></div>
 <div class="title" id="menu2"><a href="finance/checkRecentFinancialIndex.do">→ 财务指标表</a></div>
 <div class="title1" id="menu3" onclick="showmenu('3')">→ 趋势分析</div>
 	<div id="list3" class="content" style="display:block">
    	<ul>
			<li><a href="finance/checkPreGeneralReport.do" title="">- 财务简表趋势分析</a></li>
			<li><a href="finance/checkPreFinancialIndex.do" title="" style="color:blue;">- 财务指标表趋势分析</a></li>
    	</ul>
  	</div>   
</div>
</td>
<td width="84%" style="vertical-align: top;padding:20px 40px;padding:20px 40px;" id="right_frame">

<table id="title" width="100%"  border="0" cellspacing="1" cellpadding="2"  class="report">
<tr id="list_title"><th  width="36%" >项目</th><th width="64%" >金额（元）/ 比率</th></tr>
</table>

<table width="100%"  border="0" cellspacing="1" cellpadding="2" class="report">
<tr id="list_subtitle" >
<td valign="top" width="36%" style="border-top-color: #BBD9EE">
<table width="100%"  border="0" cellpadding="2" cellspacing="2" class="report">
<tr id="list_subtitle_left"><td>&nbsp;</td><td>&nbsp;</td></tr>
<c:forEach var="entry" items="${financialIndexItem}">
	<tr >
	<th rowspan="${(fn:length(entry.value))+1}" width="30%">${entry.key}</th>
	<td>&nbsp;</td>
	</tr>
	<c:forEach var="item" items="${entry.value}">
		<c:choose>
		<c:when test="${fn:substring(item.displayFlag,0,1) == '1'}">
		<tr bgcolor="#EDECFF">
		<td id="text" style="text-align: left;">${item.displayName}</td>
		</tr>
		</c:when>
		<c:when test="${fn:substring(item.displayFlag,0,1) == '3'}">
		<tr bgcolor="#FFFFB0">
		<td id="text" style="text-align: left;">${item.displayName}</td>
		</tr>
		</c:when>
		<c:when test="${fn:substring(item.displayFlag,0,1) == '5'}">
		<tr bgcolor="#EDECFF">
		<td id="text" style="text-align: left;">${item.displayName}</td>
		</tr>
		</c:when>
		<c:when test="${fn:substring(item.displayFlag,0,1) == '7'}">
		<tr bgcolor="#FFFFB0">
		<td id="text" style="text-align: left;">${item.displayName}</td>
		</tr>
		</c:when>
		<c:otherwise>
		<tr bgcolor="#FFFFFF">
		<td id="text" style="text-align: left;">${item.displayName}</td>
		</tr>
		</c:otherwise>
		</c:choose>
	</c:forEach>
</c:forEach>
</table>
</td>

<td valign="top" width="16%">
<table width="100%"  border="0" cellpadding="2" cellspacing="2" class="report">
<tr><td class="list_subtitle_right"><c:out value="${lastThreeDate}"></c:out></td></tr>
	<!-- 如果是空，显示'-'  -->

<c:choose>
	<c:when test="${ null == lastThreeFinancialIndex }">
		<c:forEach var="entry" items="${financialIndexItem}">
			<tr><td>&nbsp;</td></tr>
			<c:forEach var="item" items="${entry.value}">
				<c:choose>
				<c:when test="${item.displayFlag == '1'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '3'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '5'}">
				<tr>
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '7'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:otherwise>
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<c:forEach var="entry" items="${lastThreeFinancialIndex}">
			<tr><td>&nbsp;</td></tr>
			<c:forEach var="item" items="${entry.value}">
				<c:choose>
				<c:when test="${null == item.itemValueString}">
						<tr>
						<td>-</td>
						</tr>
				</c:when>
				<c:when test="${item.displayFlag == '11'}">
				<tr bgcolor="#EDECFF">
				<td><c:out value="${item.itemValueString}"></c:out></td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '12'}">
				<tr bgcolor="#FFFFB0">
				<td><c:out value="${item.itemValueString}"></c:out></td>
				</tr>
				</c:when>
				<c:otherwise>
				<tr bgcolor="#FFFFFF">
				<td><c:out value="${item.itemValueString}"></c:out></td>
				</tr>
				</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:forEach>
	</c:otherwise>
</c:choose>
</table>
</td>

<td valign="top" width="16%">
<table width="100%"  border="0" cellpadding="2" cellspacing="2" class="report">
<tr><td class="list_subtitle_right"><c:out value="${lastTwoDate}"></c:out></td></tr>
	
<c:choose>
	<c:when test="${ null == lastTwoFinancialIndex }">
		<c:forEach var="entry" items="${financialIndexItem}">
			<tr><td>&nbsp;</td></tr>
			<c:forEach var="item" items="${entry.value}">
				<c:choose>
				<c:when test="${item.displayFlag == '1'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '3'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '5'}">
				<tr>
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '7'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:otherwise>
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:forEach>
	</c:when>
	<c:otherwise>
			<c:forEach var="entry" items="${lastTwoFinancialIndex}">
		<tr><td>&nbsp;</td></tr>
		<c:forEach var="item" items="${entry.value}">
			<c:choose>
			<c:when test="${null == item.itemValueString}">
					<tr>
					<td>-</td>
					</tr>
			</c:when>
			<c:when test="${item.displayFlag == '11'}">
			<tr>
			<td><c:out value="${item.itemValueString}"></c:out></td>
			</tr>
			</c:when>
			<c:when test="${item.displayFlag == '12'}">
			<tr>
			<td><c:out value="${item.itemValueString}"></c:out></td>
			</tr>
			</c:when>
			<c:otherwise>
			<tr>
			<td><c:out value="${item.itemValueString}"></c:out></td>
			</tr>
			</c:otherwise>
			</c:choose>
		</c:forEach>
	</c:forEach>
	</c:otherwise>
</c:choose>	
</table>
</td>

<td valign="top" width="16%">
<table width="100%"  border="0" cellpadding="2" cellspacing="2" class="report">
<tr><td class="list_subtitle_right"><c:out value="${lastOneDate}"></c:out></td></tr>

<c:choose>
	<c:when test="${ null == lastOneFinancialIndex }">
		<c:forEach var="entry" items="${financialIndexItem}">
			<tr><td>&nbsp;</td></tr>
			<c:forEach var="item" items="${entry.value}">
				<c:choose>
				<c:when test="${item.displayFlag == '1'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '3'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '5'}">
				<tr>
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '7'}">
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:when>
				<c:otherwise>
				<tr >
				<td id="text" style="text-align: center;">-</td>
				</tr>
				</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<c:forEach var="entry" items="${lastOneFinancialIndex}">
			<tr><td>&nbsp;</td></tr>
			<c:forEach var="item" items="${entry.value}">
				<c:choose>
				<c:when test="${null == item.itemValueString}">
						<tr>
						<td>-</td>
						</tr>
				</c:when>
				<c:when test="${item.displayFlag == '11'}">
				<tr>
				<td><c:out value="${item.itemValueString}"></c:out></td>
				</tr>
				</c:when>
				<c:when test="${item.displayFlag == '12'}">
				<tr>
				<td><c:out value="${item.itemValueString}"></c:out></td>
				</tr>
				</c:when>
				<c:otherwise>
				<tr>
				<td><c:out value="${item.itemValueString}"></c:out></td>
				</tr>
				</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:forEach>
	</c:otherwise>
</c:choose>
</table>
</td>

<td valign="top" width="16%">
<table width="100%"  border="0" cellpadding="2" cellspacing="2" class="report">
<tr><td class="list_subtitle_right"><c:out value="${lastDate}"></c:out></td></tr>
<c:forEach var="entry" items="${recentFinancialIndex}">
	<tr><td>&nbsp;</td></tr>
	<c:forEach var="item" items="${entry.value}">
		<c:choose>
		<c:when test="${null == item.itemValueString}">
				<tr>
				<td>-</td>
				</tr>
		</c:when>
		<c:when test="${item.displayFlag == '11'}">
		<tr>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:when>
		<c:when test="${item.displayFlag == '12'}">
		<tr>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:when>
		<c:otherwise>
		<tr>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:otherwise>
		</c:choose>
	</c:forEach>
</c:forEach>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td><table width="100%">
<tr><td><jsp:include page="../bottom.jsp"></jsp:include></td></tr>
</table></td></tr>
</table>
  </body>
</html>
